package com.example.service;

import com.example.mapper.PostsMapper;
import com.example.pojo.entity.Post;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 小岁
 * @version 2023/10/24 21:58
 */
@Service
public class PostsServiceImpl implements PostsService{

    @Autowired
    PostsMapper postsMapper;
    @Override
    public List<Post> selectAll() {
        return postsMapper.selectLis();
    }
}
